package com.lineage.data.event;

import com.lineage.data.executor.EventExecutor;
import com.lineage.server.templates.L1Event;
import java.util.HashMap;
import java.util.Map;

public class SkillTeacherSet extends EventExecutor {
  public static final Map<Integer, Integer> RESKILLLIST = new HashMap<>();
  
  public static EventExecutor get() {
    return new SkillTeacherSet();
  }
  
  public void execute(L1Event event) {
    String[] set = event.get_eventother().split(",");
    String[] array;
    int length = (array = set).length;
    int i = 0;
    while (i < length) {
      String string = array[i];
      RESKILLLIST.put(Integer.valueOf(Integer.parseInt(string) - 1), 
          Integer.valueOf(Integer.parseInt(string)));
      i++;
    } 
  }
}
